/**
 * Created by mingtao on 7/21/16.
 */

function judgeBrowser() {
  var browser=navigator.appName;
  var b_version=navigator.appVersion;
  var version=b_version.split(";");
  try {
    var trim_Version=version[1].replace(/[ ]/g,"");
    if(browser=="Microsoft Internet Explorer"&&trim_Version.match(/MSIE[678].0/)) {
      //window.location.href="recommend.html";
      alert('您使用的浏览器版本太低。建议使用Chrome, 火狐或IE9以上版本。');
    }
  } catch (e) {
    console.warn(e);
  }
}

function getRightHeight() {
  return $(window).height() - $('.navbar').outerHeight(true) - 30 - $('.main-footer').outerHeight(true);
}

function customer_height() {
  $('#right').height(getRightHeight());
}

$(function () {
  judgeBrowser();
  
  customer_height();
  $(window).on('resize', customer_height);

  $("#setting").click(function() {$("#pwd_modal").modal("show")});
  
});
